package com.lch.controller;


import com.lch.service.WebService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/webapp")
@RestController
public class WebController {
    @Autowired
    private WebService webService;

    @RequestMapping("/web1")
    public String web1(){
        return "访问成功";
    }

    @RequestMapping("/web2")
    public String web2(){
        return webService.select();
    }
}
